package com.hanson.mapper;

import com.hanson.entity.GoodsCommentBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface GoodsCommentBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GoodsCommentBean record);

    GoodsCommentBean selectByPrimaryKey(Integer id);

    List<GoodsCommentBean> selectAll();

    List<GoodsCommentBean> selectByGoodsId(@Param("goodsId") Integer goodsId);

    int updateByPrimaryKey(GoodsCommentBean record);

    List<Map<String, Integer>> countByGoodsId(@Param("goodsId") Integer goodsId);
}